import { defineConfig } from 'vite';
import uni from '@dcloudio/vite-plugin-uni';
import path from 'path';

export default defineConfig({
  plugins: [uni()],
  build: {
    rollupOptions: {
      external: [
        'three/addons/animation/AnimationMixer.js',
        'three/addons/loaders/GLTFLoader.js'
      ]
    }
  },
  resolve: {
      alias: {
        'three': path.resolve(__dirname, './node_modules/three'),
      },
    }
});